
<script language="javascript">
function addBaby(){

	amSend("div/baby/baby_add.php?op="+escape("新增"), okAdd);
}
function okAdd(zTxt){
	document.getElementById("child_content").innerHTML = zTxt;
	initForm(addBabyForm);
}

function queryBaby(){
	amSend("div/baby/baby_list.php", okList2);
}

function okList2(zTxt){

	document.getElementById("child_content").innerHTML = zTxt;
}

function updateBaby(oEl){
	var update = escape("修改");
	amSend("div/baby/baby_add.php?babyId="+oEl.babyId+"&op="+update, okUpdate);

}
function deleteBaby(oEl){
	var zdelete = escape("删除");
	amSend("div/baby/baby_delete.php?babyId="+oEl.babyId+"&op="+zdelete, okQury);
}
function okUpdate(zTxt){
	document.getElementById("child_content").innerHTML = zTxt;
	initForm(addBabyForm);
}

function okQury(zTxt){
	var status = zTxt.split(":")[0];
	var info = zTxt.split(":")[1];
	if(status == "1"){
		alert(info);
		amSend("div/baby/baby_list.php", okList2);
	}else{
		alert("ERROR:" + info);
	}
}


</script>

<div class="right">
    <div class="right1">现在的位置：<a href="#">首页</a>>>模板管理  <input style="margin-left:400px;" type="button" onclick="queryBaby()" value="查询" /> <input style="margin-left:20px;" type="button" onclick="addBaby()" value="新增模板" /> </div>

	<div class="right2" id="child_content" align="center">
	   <div class="right2_tt" align="left">
	   		<table>
	   			<tr style="background:#FFB109;"><td>序号/编号</td><td>模板名称</td><td>模板产品分类</td><td>模板浏览次数</td><td>下载次数</td><td>上传时间</td><td>详情</td><td>修改</td><td>删除</td></tr>
	   		</table>
	   </div>
	</div>

	<div class="right3"><img src="images/right_b_03.jpg" /></div>
</div>

